package mall

import (
	"net/http"

	"private-domain-overseas-service/app/business/api/internal/logic/mall"
	"private-domain-overseas-service/app/business/api/internal/svc"
	"private-domain-overseas-service/pkg/result"
)

// 站点选择下拉框
func MallSiteListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := mall.NewMallSiteListLogic(r.Context(), svcCtx)
		resp, err := l.MallSiteList()

		result.HttpResult(r, w, resp, err)
	}
}
